package cn.dengta.webapp.user.vo;

import java.math.BigDecimal;

import cn.dengta.webapp.base.vo.AbstractVO;
import lombok.Getter;
import lombok.Setter;
import me.codeplayer.util.X;
import org.aspectj.weaver.loadtime.Agent;

@Getter
@Setter
public class AgentIncomeInfoVO extends AbstractVO<Agent> {

	/** 今日收入 */
	public BigDecimal todayTradeAmount;
	/** 昨日收入 */
	public BigDecimal yesterdayTradeAmount;
	/** 本周收入 */
	public BigDecimal weekTradeAmount;
	/** 本月收入 */
	public BigDecimal monthTradeAmount;
	/** 总收入：昨日总收入 2024-09-14 */
	public BigDecimal totalTradeAmount;
	/** 代理总收入：本周总收入 2024-09-14 */
	public BigDecimal agentTotalTradeAmount;

	public AgentIncomeInfoVO initTradeAmount(AgentIncomeInfoVO vo) {
		this.todayTradeAmount = X.expectNotNull(vo.todayTradeAmount, BigDecimal.ZERO);
		this.yesterdayTradeAmount = X.expectNotNull(vo.yesterdayTradeAmount, BigDecimal.ZERO);
		this.weekTradeAmount = X.expectNotNull(vo.weekTradeAmount, BigDecimal.ZERO);
		this.monthTradeAmount = X.expectNotNull(vo.monthTradeAmount, BigDecimal.ZERO);
		this.totalTradeAmount = X.expectNotNull(vo.totalTradeAmount, BigDecimal.ZERO);
		this.agentTotalTradeAmount = X.expectNotNull(vo.agentTotalTradeAmount, BigDecimal.ZERO);
		return this;
	}

}
